import os
import socket


ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

MODEL_PATH = os.path.join(ROOT,r"data/best.pt")
PH_MODEL_PATH = os.path.join(ROOT,'data/model/ph_yolo_best.pt')
H2O2_MODEL_PATH = os.path.join(ROOT,'data/model/h2o2_yolo_best.pt')
LE_MODEL_PATH = os.path.join(ROOT,'data/model/le_yolo_best.pt')
PIP_MODEL_PATH = os.path.join(ROOT,'data/model/pip_yolo_best.pt')
SNA_MODEL_PATH = os.path.join(ROOT,'data/model/sna_yolo_best.pt')
OA_MODEL_PATH = os.path.join(ROOT,'data/model/oa_yolo_best.pt')
NAG_MODEL_PATH = os.path.join(ROOT,'data/model/nag_yolo_best.pt')


IMAGE_PATH = os.path.join(ROOT,"images")
if not os.path.exists(IMAGE_PATH):
    os.mkdir(IMAGE_PATH)


def server_ip():
    hostname = socket.gethostname()
    ip = socket.gethostbyname(hostname)
    return ip


def replicas():
    return  3



